package com.ruoyi.user.domain;


import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 车型（car_type）对象 car_type
 * 
 * @author ruoyi
 * @date 2024-09-13
 */

public class CarType extends BaseEntity
{
    //private static final long serialVersionUID = 1L;

    /** id主键 */
    @Excel(name = "id主键")
    private Long id;

    /** 所属品牌 */
    @Excel(name = "所属品牌")
    private Long bid;

    /** 车型 */
    @Excel(name = "车型")
    private String name;

    /** 颜色 */
    @Excel(name = "颜色")
    private String color;

    /** 图片 */
    @Excel(name = "图片")
    private String img;

    /** 删除状态 */
    private Long deleted;
    /**
     * 一对一关系属性
     */
    private CarBrand carBrand;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getBid() {
        return bid;
    }

    public void setBid(Long bid) {
        this.bid = bid;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public Long getDeleted() {
        return deleted;
    }

    public void setDeleted(Long deleted) {
        this.deleted = deleted;
    }

    public CarBrand getCarBrand() {
        return carBrand;
    }

    public void setCarBrand(CarBrand carBrand) {
        this.carBrand = carBrand;
    }

    @Override
    public String toString() {
        return "CarType{" +
                "id=" + id +
                ", bid=" + bid +
                ", name='" + name + '\'' +
                ", color='" + color + '\'' +
                ", img='" + img + '\'' +
                ", deleted=" + deleted +
                ", carBrand=" + carBrand +
                '}';
    }

    public CarType() {
    }

    public CarType(Long id, Long bid, String name, String color, String img, Long deleted, CarBrand carBrand) {
        this.id = id;
        this.bid = bid;
        this.name = name;
        this.color = color;
        this.img = img;
        this.deleted = deleted;
        this.carBrand = carBrand;
    }
}
